package com.googlecode.jvmpart.proc;

import java.util.Map;

public abstract class AbsProcessor  implements JvmProcess {
	private Map<String, String> params;
	private String ppid;

	public void execute(String ppid, Map<String, String> params)
			throws JvmProcessException {
		this.ppid = ppid;
		this.params = params;
		doExecute();
	}
	public abstract void doExecute() throws JvmProcessException;
	public Map<String, String> getParams() {
		return params;
	}
	public String getParam(String key) {
		return params.get(key);
	}
	public String getParentProcessId() {
		return ppid;
	}

}
